<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    body {
      background-color: #f6f6f6;
    }

    .box {
      width: 525px;
      margin: 50px auto;

      /* 透视效果：近大远小，近实远虚 */
      perspective: 1000px;
    }

    img {
      width: 525px;
      transition: all 2s;
    }

    .box img:hover {
      transform: rotateX(60deg);
      transform: rotateX(-60deg);
    }
  </style>
</head>

<body>
  <div class="box">
    <img src="../02-平面转换/风景图.jpg" alt="">
  </div>
</body>

</html>